package znet

import "tcpChat/ziface"

type Request struct {
	Conn ziface.IConnection //客户端连接的socket
	Message ziface.IMessage //客户端请求的数据
}

func (r *Request) GetConnection() ziface.IConnection{
	return r.Conn
}

func (r *Request) GetMsgId() uint32 {
	return r.Message.GetMSGId()
}

func (r *Request) GetData() []byte {
	return r.Message.GetData()
}
